package fetcher

import (
	"io"
	"log"
	"net/http"
)

func Download(url string) string {
	resp, err := http.Get(url)
	if nil != err {
		log.Println(err)
		return ""
	}
	defer resp.Body.Close()
	content, err := io.ReadAll(resp.Body)
	if nil != err {
		log.Println(err)
		return ""
	}
	return string(content)
}
